function popup(url) {
	newwindow=window.open(url,'popup',
	   'height=325,width=350,resizable=true,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no');
	if (window.focus) {newwindow.focus();}
	return false;
}

function isIE() {
	return document.all?true:false;
}

function findCoords(e) {

	var x = 0;
	var y = 0;
	if ( isIE() ) {
		x = event.clientX + document.body.scrollLeft;
		y = event.clientY + document.body.scrollTop;
	} else {
		x = e.pageX;
		y = e.pageY;
	}
	return [x,y];
}

function findPagePos(obj) {

	var curleft = curtop = 0;
	if ( obj.offsetParent ) {
		for (; obj != null; obj = obj.offsetParent) {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
		return [curleft,curtop];
	}
	return null;
}